﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TPressure
{
    internal class Alert
    {
        Font font;
        /// <summary>Info消息
        /// 
        /// </summary>
        /// <param name="msg"></param>
        public static void Info(string msg,Form frm)
        {
            AntdUI.Message.info(frm, msg, null);
            //MessageBox.Show(msg, "友情提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }


        /// <summary>Warn消息
        /// 
        /// </summary>
        /// <param name="msg"></param>
        public static void Warn(string msg, Form frm)
        {
            AntdUI.Message.warn(frm, msg, null);
            //MessageBox.Show(msg, "警告提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }

        /// <summary>Error消息
        /// 
        /// </summary>
        /// <param name="msg"></param>
        public static void Error(string msg, Form frm)
        {
            AntdUI.Message.error(frm, msg, null);
            //MessageBox.Show(msg, "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
    }
}
